package com.icedevcloud.upms.controller.admin.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * 用户信息ResDto
 * </p>
 *
 * @author dengbing
 * @since 2023-08-23
 */
@Schema(name = "用户信息ResDto")
@Data
public class UserInfoResDto {

    private Long userId;

    private String username;

    private String nickname;

    private String realName;

    private String avatar;

    private String homePath;

    private String token;

    private List<SimpleUserInfoRoleDto> roles;

    @Data
    public static class SimpleUserInfoRoleDto {
        private String roleName;
        private String value;
    }

}
